//
//  RNOLAuthPayFooter.m
//  RongNiuOnline
//
//  Created by apple on 2018/4/25.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLAuthPayFooter.h"

@interface RNOLAuthPayFooter ()
@property (weak, nonatomic) IBOutlet UIButton *checkBoxButton;
@property (weak, nonatomic) IBOutlet UILabel *protocolLabel;

@end

@implementation RNOLAuthPayFooter


- (void)awakeFromNib{
    [super awakeFromNib];
    
    self.checkBoxButton.touchAreaInsets = UIEdgeInsetsMake(10, 10, 10, 10);
    
    self.protocolLabel.userInteractionEnabled = YES;
    [self.protocolLabel addTapActionWithBlock:^(UIGestureRecognizer *gestureRecoginzer) {
       //查看协议
        NSLog(@"查看协议");
    }];
    
    [self.protocolLabel moreColorWithAttributeString:@"《服务协议》" color:kAppMainColor];
    
}

- (IBAction)addAction:(UIButton *)sender {
    
    
    
}


- (IBAction)selectCheckBoxAction:(UIButton *)button {
    button.selected = !button.selected;
}





@end

